package demo3;



/**
 * @author Huangjin
 * @version 1.0
 * describe:
 * @date 2023/2/23 18:54
 */
public class Test {
    public static void main(String[] args) {
        Teacher[] teach = new Teacher[2];
        teach[0] = new Teacher("李白",20,5000);
        teach[1] = new Teacher("程咬金",30,6000);
        for (int i = 0; i < teach.length; i++) {
            System.out.println(teach[i].name);
            teach[i].getTheJobDone();
            teach[i].clockInToWork();
            teach[i].clockInAfterWork();
        }
        DirectorOfTeachingAndResearch[] dota = new DirectorOfTeachingAndResearch[2];
        dota[0] = new DirectorOfTeachingAndResearch("妲己",22,5000);
        dota[1] = new DirectorOfTeachingAndResearch("甄姬",23,6000);
        for (int i = 0; i < dota.length; i++) {
            System.out.println(dota[i].name);
            dota[i].getTheJobDone();
            dota[i].clockInToWork();
            dota[i].clockInAfterWork();
        }
        Lecturer[] lt = new Lecturer[2];
        lt[0] = new Lecturer("孙兵",22,5000);
        lt[1] = new Lecturer("靡磊",18,6000);
        for (int i = 0; i < lt.length; i++) {
            System.out.println(lt[i].name);
            lt[i].getTheJobDone();
            lt[i].clockInToWork();
            lt[i].clockInAfterWork();
        }
        ProjectManager[] pm = new ProjectManager[2];
        pm[0] = new ProjectManager("易洪彪",19,5000);
        pm[1] = new ProjectManager("刘家祥",23,6000);
        for (int i = 0; i < pm.length; i++) {
            System.out.println(pm[i].name);
            pm[i].getTheJobDone();
            pm[i].clockInToWork();
            pm[i].clockInAfterWork();
            pm[i].editBooks();
        }
    }
}
